///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_item_logic.h
// Created: 2013-12-3
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "hy_includes.h"

class hy_item_data;
class hy_player_item_data;
class hy_item_logic : public hy_object
{
public:
	hy_item_logic();
	virtual ~hy_item_logic();

	static hy_item_logic*		instance();
	static void					purge_instance();

public:
	hy_item_data*				get_item_by_template_id( int item_template_id );
	hy_player_item_data*		get_item_by_player_bag_pos( int player_id, int bag, int pos );

	bool						add_player_item( int player_id, int bag, int pos, int item_id );
};